/**
 * 
 * infoControl.js
 * 信息控制
 * 
 * @author: 么苋木偶
 * @time: 2017/3/14 13:06
 * 
 * */

var contentOneShow = true;//设置信息列表一是否下拉
var contentSecondShow = true;//设置信息列表一是否下拉
var contentThirdShow = true;//设置信息列表一是否下拉
$('.shouFirst').on('click',function(){
	if(contentOneShow){
		$('.infoContOne').show();
		contentOneShow = false;
	}else{
		$('.infoContOne').hide();
		contentOneShow = true;
	}
})
$('.shouSecond').on('click',function(){
	if(contentSecondShow){
		$('.infoContSecond').show();
		contentSecondShow = false;
	}else{
		$('.infoContSecond').hide();
		contentSecondShow = true;
	}
})
$('.shouThird').on('click',function(){
	if(contentThirdShow){
		$('.infoContThird').show();
		contentThirdShow = false;
	}else{
		$('.infoContThird').hide();
		contentThirdShow = true;
	}
})
/*提交表单*/
$('#submit').on('click',function(){
	/*$('#contOne').val($('#inputOne').html().replace(/(^\s+)|(\s+$)/g,""));
	$('#contTwo').val($('#inputTwo').html().replace(/(^\s+)|(\s+$)/g,""));
	$('#contThree').val($('#inputThree').html().replace(/(^\s+)|(\s+$)/g,""));
	$('#selTwo').val($('.selectTwo').html().replace(/(^\s+)|(\s+$)/g,""));
	$('#selThree').val($('.selectThree').html().replace(/(^\s+)|(\s+$)/g,""));
	$('#selOne').val($('.select').html().replace(/(^\s+)|(\s+$)/g,""));*/
	$('form').submit();
})
